/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.component.feedback.repository.service;

import cn.hutool.core.bean.BeanUtil;
import info.peigen.hotpot.component.feedback.domain.Feedback;
import info.peigen.hotpot.component.feedback.repository.entity.FeedbackEntity;

/**
 * <b>(FeedbackConvertor)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2023/1/13
 */
public class FeedbackConvertor {
    public static FeedbackEntity convert(Feedback domain) {
        return BeanUtil.copyProperties(domain, FeedbackEntity.class);
    }

    public static Feedback convert(FeedbackEntity entity) {
        return BeanUtil.copyProperties(entity, Feedback.class);
    }
}
